import re
from urllib.parse import unquote


a=[]
with open("sql","rb") as f:
    for i in f.readlines():
        if b"sleep(3)" in i:
            a.append(i.strip())

flag=b""
for i in range(len(a)):
    try:
        f1=re.search(rb"(\d+:\d+:\d+) -0500] \"GET /web/admin/sql.php\?id=-1%20union%20select%201,IF\(MID\(\(select%20f1ag%20from%20f1ag%20limit%200,1\),\d+,1\)\=binary\(\'(.*?)\'\)",a[i-1])
        f2=re.search(rb"(\d+:\d+:\d+) -0500] \"GET /web/admin/sql.php\?id=-1%20union%20select%201,IF\(MID\(\(select%20f1ag%20from%20f1ag%20limit%200,1\),\d+,1\)\=binary\(\'(.*?)\'\)",a[i])
        if f1[1]==f2[1]:
            print(f1[1])
            flag+=f1[2]
    except:
        continue
print(unquote(flag))